﻿using System;
using System.Collections.Generic;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using Sustainalytics.Entities.ConnectionStrings;
using Sustainalytics.PregenerateScreeningReports.Service;

namespace Sustainalytics.PregenerateSceeringReports.Service.Tests
{
    [TestClass]
    public class ScreeningToolHelperTests
    {
        [TestMethod]
        public void SaveMaximalReportTest()
        {
            string connectionString = "mongodb://sustadmin:G4nd4lf2014@54.72.160.155/ClientPlatform";
            var connectionStringsMap = new Dictionary<ConnectionStringType, string>();

            connectionStringsMap[ConnectionStringType.ClientPlatform] = connectionString;
            connectionStringsMap[ConnectionStringType.ClientUniverses] = connectionString.Replace(
                "ClientPlatform", 
                "ClientUniverses_A");
            connectionStringsMap[ConnectionStringType.ClientDW] = connectionString.Replace(
                "ClientPlatform", 
                "ClientDW_A");
            connectionStringsMap[ConnectionStringType.ScreeningDW] = connectionString.Replace(
                "ClientPlatform", 
                "ScreeningDW_A");

            var helper = new ScreeningToolHelper(connectionStringsMap, "localhost");
            helper.SaveMaximalReport(Guid.Parse("b4e4dfee-b8c0-419d-9967-a5d6f3d12371"), "xxx.xlsx");

            Assert.Fail();
        }
    }
}
